feat: parallel execution framework#1428
Merged
TimothyZhang7 merged 4 commits intoaden-hive:mainfrom Jan 27, 2026
Merged
Conversation
jhalak999
pushed a commit
to jhalak999/hive
that referenced
this pull request
Feb 17, 2026
…-fanout feat: parallel execution framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements #157
Summary
GraphExecutor, enabling a single node to execute multiple downstream branches concurrently viaasyncio.gather()ParallelBranchandParallelExecutionConfigdataclasses for controlling branch lifecycle, timeouts, and failure strategies (fail_all,continue_others,wait_all)detect_fan_out_nodes()anddetect_fan_in_nodes()toGraphSpecfor static analysis of parallel topology in edge definitions_find_convergence_node()) so branches rejoin at a shared downstream nodemax_retries, configurable memory conflict resolution (last_wins,first_wins,error), and a 300s default branch timeoutChanged files
core/framework/graph/executor.py— parallel branch execution, convergence detection, multi-edge traversalcore/framework/graph/edge.py— fan-out/fan-in detection onGraphSpeccore/framework/graph/node.py— async memory write support for parallel contextcore/framework/llm/litellm.py— minor adjustment for parallel compatibilitycore/framework/runtime/execution_stream.py— stream support additionTest plan
ON_SUCCESSedgesfail_allstrategy cancels remaining branches on first failurecontinue_othersstrategy lets healthy branches completewait_allstrategy collects all results before proceedingbranch_timeout_secondslast_wins,first_wins,error)max_retries